package com.sunwayworld.basemodule.business.result.dao.impl;

import com.sunwayworld.framework.mybatis.mapper.MapperParameter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.sunwayworld.basemodule.business.result.bean.LimsResultBean;
import com.sunwayworld.basemodule.business.result.dao.LimsResultDao;
import com.sunwayworld.basemodule.business.result.mapper.LimsResultMapper;
import com.sunwayworld.framework.mybatis.dao.MybatisDaoSupport;
import com.sunwayworld.framework.spring.annotation.GikamBean;

import java.util.List;
import java.util.Map;

@Repository
@GikamBean
public class LimsResultDaoImpl extends MybatisDaoSupport<LimsResultBean, Long> implements LimsResultDao {

    @Autowired
    private LimsResultMapper limsResultMapper;

    @Override
    public LimsResultMapper getMapper() {
        return limsResultMapper;
    }

    @Override
    public List<Map<String, Object>> selectTopResultValueList(MapperParameter parameter) {
        return getMapper().selectTopResultValueList(parameter);
    }

    @Override
    public List<Map<String, Object>> selectForFormula(MapperParameter parameter) {
        return getMapper().selectForFormula(parameter);
    }

    @Override
    public List<Map<String, Object>> selectResultToColumns(MapperParameter parameter) {
        return getMapper().selectResultToColumns(parameter);
    }

    @Override
    public List<Map<String, Object>> selectResultByJudgeType(MapperParameter parameter) {
        return getMapper().selectResultByJudgeType(parameter);
    }

    @Override
    public List<Map<String, Object>> selectRecordLineList(MapperParameter parameter) {
        return getMapper().selectRecordLineList(parameter);
    }

}
